package net.qhzw.vip.qiyu.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import net.qhzw.vip.qiyu.entity.Information;
import net.qhzw.vip.qiyu.mapper.InformationMapper;
import net.qhzw.vip.qiyu.service.InformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class InformationServiceImpl extends ServiceImpl<InformationMapper, Information>
        implements InformationService {


    @Autowired
    private InformationMapper informationMapper;

    @Override
    public void income(Long shopId, Double price) {
        informationMapper.income(shopId, price);
    }

    @Override
    public Information selectByShopId(Long shopId) {
       return informationMapper.selectByShopId(shopId);
    }
}
